package com.pojo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author luoqingchen
 * @reate 2022-11-26-20:40
 */
public class usertext {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("test.xml");
        User name1 =(User) applicationContext.getBean("user");
        System.out.println("value="+name1.getName());
    }
}
